<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>APP基本信息表新增</title>
<link href="../../static/plugin/easyui/themes/bootstrap/easyui.css"
	rel="stylesheet" type="text/css" />
<link href="../../static/plugin/easyui/themes/icon.css" rel="stylesheet"
	type="text/css" />
<link href="../../static/css/esaas-easyui-add.css" rel="stylesheet"
	type="text/css" />
<script src="../../static/plugin/easyui/jquery.min.js"
	type="text/javascript"></script>
<script src="../../static/plugin/easyui/jquery.easyui.min.js"
	type="text/javascript" charset="utf-8"></script>
<script src="../../static/plugin/easyui/locale/easyui-lang-zh_CN.js"
	type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js"
	type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js"
	type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js"
	type="text/javascript"></script>
<script src="../../ffres/dict/all.js" type="text/javascript"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout">
	<form id="ff" method="post">
		<div class="esaas-info-title">APP基本信息表信息</div>
		<table class="esaas-info-add-table">
			<tbody>
				<tr>
					<td width="15%" align="right">移动应用标识：</td>
					<td width="35%"><input class="easyui-textbox" type="text"
						name="appId" data-options="required:true"
						style="width: 100%; height: 25px;"></input></td>
					<td width="15%" align="right">移动应用名称：</td>
					<td width="35%"><input class="easyui-textbox" type="text"
						name="appName" data-options="required:true"
						style="width: 100%; height: 25px;"></input></td>
				</tr>
				<tr>
					<td width="15%" align="right">当前版本号：</td>
					<td width="35%"><input class="easyui-textbox" type="text"
						name="appVersionId" data-options="required:true"
						style="width: 100%; height: 25px;"></input></td>
					<td width="15%" align="right">发布版本日期：</td>
					<td width="35%"><input class="easyui-textbox" type="text"
						name="appVersionDate" data-options="required:true"
						style="width: 100%; height: 25px;"></input></td>
				</tr>
				<tr>
					<td width="15%" align="right">移动应用状态：</td>
					<td width="35%"><select class="easyui-combobox"
						id="appState" name="appState"
						style="width: 100%; height: 25px;"
						data-options="required:true,editable:false,valueField:'enname',textField:'cnname',data:APP_USER_STATE">
					</select></td>
					<td width="15%" align="right">应用类型：</td>
					<td width="35%"><select class="easyui-combobox"
						id="appType" name="appType"
						style="width: 100%; height: 25px;"
						data-options="required:false,editable:false,valueField:'enname',textField:'cnname',data:APP_TYPE">
					</select></td>
				</tr>
				<tr>
					<td width="15%" align="right" valign="top">备注：</td>
					<td width="65%" colspan="3"><textarea name="remarks"
							class="easyui-validatebox validatebox-text"
							style="overflow-x: hidden; height: 60px; width: 98.5%;"></textarea>
					</td>
				</tr>
			</tbody>
		</table>
	</form>
	<div style="text-align: center; padding: 15px">
		<a href="javascript:void(0)" class="easyui-linkbutton"
			onclick="submitForm()">&nbsp;保&nbsp;存&nbsp;</a> <a
			href="javascript:void(0)" class="easyui-linkbutton"
			onclick="closeForm()">&nbsp;关&nbsp;闭&nbsp;</a>
	</div>
	<script>
		$(function() {

		});

		function submitForm() {
			if (!$('#ff').form('validate'))
				return;
			var jsonData = $("#ff").serializeJson();
			$.restfulPostJson('../../api/app/base/info', jsonData, function(
					data) {
				window.parent.reloadList();
			});
		};

		function closeForm() {
			window.parent.JLEUtil.closewin();
		}
	</script>